/**
ysbErPatch.mg
*/


class YSBRecruitTwoViewController:YSBViewController {

- (void)viewDidLoad {

  super.viewDidLoad();

  self.configuration();

  self.scrollView.contentSize = CGSizeMake(0, self.view.frame.size.height + 88 + 110);

}


}


class YSBRecruitFourViewController:YSBViewController {

- (void)viewDidLoad {
  super.viewDidLoad();
  
  self.dataArrays = NSMutableArray.alloc().init();

  self.configuration();

  self.scrollView.contentSize = CGSizeMake(0, self.view.frame.size.height + 88 + 50);

}


}


class LHChatVC:YSBViewController {


- (NSIndexPath *)insertNewMessageOrTime:(id)NewMessage {

    NSIndexPath *index = NSIndexPath.indexPathForRow:inSection:(self.dataSource.count,0);
    self.dataSource.addObject:(NewMessage);
        
    self.tableView.reloadData();

    return index;
}


}



class YSBRecordCell : UITableViewCell {


- (void)setModel:(YSBRecordModel *)model {
    _model = model;
    if (self.recordType == 0) {
        
        self.typeLabel.text = @"提现";
        
        NSMutableString *mutStr = NSMutableString.alloc().initWithString:(@"-");
        mutStr.appendString:(model.total);
        self.moneyLabel.text = mutStr;
        
    }
    else if (self.recordType == 2) {
        
        self.typeLabel.text = YSBCommonTool.isBlankString:(model.type) ? @"" : model.type;
                
        NSMutableString *mutStr = NSMutableString.alloc().initWithString:(model.flag);
        mutStr.appendString:(model.money);
        self.moneyLabel.text = mutStr;
        
    }
    else if (self.recordType == 1) {
        
        self.typeLabel.text = @"充值";
        
        NSMutableString *mutStr = NSMutableString.alloc().initWithString:(@"+");
        mutStr.appendString:(model.money);
        self.moneyLabel.text = mutStr;
        
    }
    self.timeLabel.text = model.created_at;
    self.statusLabel.text = model.status;
}


}
